from django.urls import re_path,path
from . import views


urlpatterns = [
    # 获取省级数据: GET: /areas/
    path('areas/', views.ProvinceAreasView.as_view()),
    # 获取市或区县数据： GET: /areas/(?P<pk>[1-9]\d+)/
    re_path(r'^areas/(?P<pk>[1-9]\d+)/$', views.SubAreasView.as_view()),
]